import request from '/@/utils/request';

export function useUserApi() {
	return {
		getUserList: (params?: object) => {
			return request({
				url: '/common/user_list',
				method: 'get',
				params,
			});
		},
        postDeleteUser: (data: object) => {
            return request({
                url: '/common/user_delete',
                method: 'post',
                data,
            });
        },
		postUserAdd: (data: object) => {
			return request({
				url: '/common/user_add',
				method: 'post',
				data,
			});
		},
		postUserEdit: (data: object) => {
			return request({
				url: '/common/user_edit',
				method: 'post',
				data,
			});
		}
	};
}
